package com.fcscs.cservice.ws.client.reservationservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.reservationservice.ExpressCheckOutRequest;
import com.fcscs.cservice.ws.schema.reservationservice.ExpressCheckOutResponse;

public class ExpressCheckoutClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(ExpressCheckoutClient.class);

	public ExpressCheckOutResponse checkout(ExpressCheckOutRequest req) {
		ExpressCheckOutResponse resp = (ExpressCheckOutResponse) getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("----------resv " + resp.isSuccess());
		return resp;
	}

}
